let arr = [1, [2, 3], 4, [5, [6, [7]]], 9];

console.log(arr.join(",").split(","));
// console.log([].concat(...arr));
